home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam15
/
makefile.unx
< prev
next >
Wrap
Makefile
|
1995-09-27
|
768b
|
52 lines
CC = gcc
.SUFFIXES: .d
BINDIR = ../../bin
LIBDIR = ../../lib
INCDIR = ../../include
#DEBUG = -g
#DEBUG = -O
CFLAGS = -I$(INCDIR)
GFLAGS = -I$(INCDIR) -O
TARGET = main
CLASSES = class1.d
CFILES = main.c
OBJS = $(CFILES:.c=.o) $(CLASSES:.d=.o)
.d.c:
$(BINDIR)/dpp -g -p $<
.c.o:
$(CC) $(CFLAGS) $(DEBUG) -c $<
$(TARGET) : generics.1 generics.h generics.o $(OBJS)
$(CC) $(DEBUG) -o $(TARGET) $(OBJS) generics.o $(LIBDIR)/dynace.a -lm
generics.h : $(CLASSES)
$(BINDIR)/dpp -g -t -h -p $?
generics.c : generics.h
$(BINDIR)/dpp -g -c
generics.o : generics.c
$(CC) $(GFLAGS) -c $<
generics.1 newgens:
$(BINDIR)/dpp -g $(INCDIR)/generics.h -p $(CLASSES) -h
touch generics.1
clean:
-rm -f *.obj *.exe generics.* $(TARGET) *.o $(CLASSES:.d=.c) *~